package com.pp.tourism.web.exception;

import lombok.Getter;
import lombok.Setter;

public enum ApiRtnCode {
    OK("200", "ok"),
    UNEXPECTED_ERROR("-1", "unexpected error"),
    NEED_LOGIN("403", "need login"),

    LOGIN_INFO_NOT_NULL("010101","username or password not be null"),
    LOGIN_INFO_INCORRECT("010102","username or password is not correct"),

    ;

    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String msg;

    ApiRtnCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
